package com.jdqzyy.noobnoob.common.constant.response;

import org.springframework.http.ResponseEntity;

/**
 * @author Zyy
 * @Description: 我们自定义的后端的对与各种业务处理情况的返回值
 * @date 2020/11/21下午7:33
 * @slogan 天下风云出我辈，一入代码岁月催
 */
public enum ResultCodeMsg implements ResponseEnum{
    /**
     * 开发阶段，先写个example放这里，后续开发再议
     */
    NOT_EXIST(404,"路径不存在，请检查路径是否正确");

    private final int code;
    private final String msg;

    ResultCodeMsg(int value, String reasonPhrase) {
        this.code = value;
        this.msg = reasonPhrase;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
